package com.ys.controller;

import com.ys.pojo.Supplier;
import com.ys.service.SupplierService;
import com.ys.vo.ResultVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.xml.transform.Result;
import java.util.List;


@RestController
@RequestMapping("/supplier")
public class ZSupplierController {

    @Resource
    private SupplierService supplierService;

    @GetMapping("/searchAll")
    public ResultVo searchAll(){
        List<Supplier> list = supplierService.searchAll();
        return ResultVo.success(list);
    }
}
